<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
<script type="text/javascript">
	
	var num = prompt('请输入一个数字');
	if(num%2 == 1){
		document.write("奇数");
	}else{
		document.write("偶数");
	}
	
	
</script>
	</head>
	<body>
	</body>
</html>
